.class public Lcom/baidu/mobads/f/g;
.super Ljava/lang/Object;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/baidu/mobads/f/g$b;,
        Lcom/baidu/mobads/f/g$a;,
        Lcom/baidu/mobads/f/g$c;
    }
.end annotation


# static fields
.field protected static a:Ljava/lang/Thread$UncaughtExceptionHandler;

.field protected static volatile b:Lcom/baidu/mobads/f/a;

.field protected static volatile c:Lcom/baidu/mobads/f/a;

.field protected static volatile d:Ljava/lang/Class;

.field protected static e:Ljava/lang/String;

.field protected static final f:Landroid/os/Handler;

.field private static i:Ljava/lang/String;


# instance fields
.field protected g:Landroid/os/Handler;

.field protected final h:Landroid/os/Handler;
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "HandlerLeak"
        }
    .end annotation
.end field

.field private j:Lcom/baidu/mobads/openad/d/a;

.field private k:Lcom/baidu/mobads/f/e;

.field private final l:Landroid/content/Context;

.field private m:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

.field private n:Z

.field private o:Ljava/util/concurrent/CopyOnWriteArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/concurrent/CopyOnWriteArrayList<",
            "Lcom/baidu/mobads/f/g$c;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 2

    .line 1
    new-instance v0, Lcom/baidu/mobads/f/h;

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/baidu/mobads/f/h;-><init>(Landroid/os/Looper;)V

    sput-object v0, Lcom/baidu/mobads/f/g;->f:Landroid/os/Handler;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 3

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v0

    invoke-virtual {v0}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getAdLogger()Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    move-result-object v0

    iput-object v0, p0, Lcom/baidu/mobads/f/g;->m:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    const/4 v0, 0x0

    .line 3
    iput-boolean v0, p0, Lcom/baidu/mobads/f/g;->n:Z

    .line 4
    sget-object v0, Lcom/baidu/mobads/f/g;->f:Landroid/os/Handler;

    iput-object v0, p0, Lcom/baidu/mobads/f/g;->g:Landroid/os/Handler;

    .line 5
    new-instance v0, Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-direct {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;-><init>()V

    iput-object v0, p0, Lcom/baidu/mobads/f/g;->o:Ljava/util/concurrent/CopyOnWriteArrayList;

    .line 6
    new-instance v0, Lcom/baidu/mobads/f/i;

    .line 7
    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    invoke-direct {v0, p0, v1}, Lcom/baidu/mobads/f/i;-><init>(Lcom/baidu/mobads/f/g;Landroid/os/Looper;)V

    iput-object v0, p0, Lcom/baidu/mobads/f/g;->h:Landroid/os/Handler;

    .line 8
    sget-object v0, Lcom/baidu/mobads/f/g;->i:Ljava/lang/String;

    if-nez v0, :cond_0

    .line 9
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v0

    invoke-virtual {v0}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getURIUitls()Lcom/baidu/mobads/interfaces/utils/IXAdURIUitls;

    move-result-object v0

    .line 10
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "http://mobads.baidu.com/ads/pa/"

    invoke-interface {v0, v2}, Lcom/baidu/mobads/interfaces/utils/IXAdURIUitls;->replaceURLWithSupportProtocol(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 11
    invoke-static {}, Lcom/baidu/mobads/constants/XAdSDKProxyVersion;->getMajorVersionNumber()I

    move-result v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v0, "/__pasys_remote_banner.php"

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/baidu/mobads/f/g;->i:Ljava/lang/String;

    .line 12
    :cond_0
    iput-object p1, p0, Lcom/baidu/mobads/f/g;->l:Landroid/content/Context;

    .line 13
    invoke-static {p1}, Lcom/baidu/mobads/f/g;->c(Landroid/content/Context;)V

    .line 14
    sget-object v0, Lcom/baidu/mobads/f/g;->a:Ljava/lang/Thread$UncaughtExceptionHandler;

    if-nez v0, :cond_1

    .line 15
    invoke-static {p1}, Lcom/baidu/mobads/f/q;->a(Landroid/content/Context;)Lcom/baidu/mobads/f/q;

    move-result-object v0

    sput-object v0, Lcom/baidu/mobads/f/g;->a:Ljava/lang/Thread$UncaughtExceptionHandler;

    .line 16
    invoke-static {p1}, Lcom/baidu/mobads/f/q;->a(Landroid/content/Context;)Lcom/baidu/mobads/f/q;

    move-result-object p1

    new-instance v0, Lcom/baidu/mobads/f/j;

    invoke-direct {v0, p0}, Lcom/baidu/mobads/f/j;-><init>(Lcom/baidu/mobads/f/g;)V

    invoke-virtual {p1, v0}, Lcom/baidu/mobads/f/q;->a(Lcom/baidu/mobads/f/q$a;)V

    .line 17
    :cond_1
    invoke-static {}, Ljava/lang/Thread;->getDefaultUncaughtExceptionHandler()Ljava/lang/Thread$UncaughtExceptionHandler;

    move-result-object p1

    instance-of p1, p1, Lcom/baidu/mobads/f/q;

    if-nez p1, :cond_2

    .line 18
    sget-object p1, Lcom/baidu/mobads/f/g;->a:Ljava/lang/Thread$UncaughtExceptionHandler;

    invoke-static {p1}, Ljava/lang/Thread;->setDefaultUncaughtExceptionHandler(Ljava/lang/Thread$UncaughtExceptionHandler;)V

    :cond_2
    return-void
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;)D
    .locals 4

    const-wide/16 v0, 0x0

    .line 48
    :try_start_0
    new-instance p0, Ljava/io/File;

    invoke-direct {p0, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 49
    invoke-static {p0}, Lcom/baidu/mobads/utils/p;->a(Ljava/io/File;)Z

    move-result p1

    if-eqz p1, :cond_0

    .line 50
    new-instance p1, Ljava/util/jar/JarFile;

    invoke-direct {p1, p0}, Ljava/util/jar/JarFile;-><init>(Ljava/io/File;)V

    .line 51
    invoke-virtual {p1}, Ljava/util/jar/JarFile;->getManifest()Ljava/util/jar/Manifest;

    move-result-object p0

    invoke-virtual {p0}, Ljava/util/jar/Manifest;->getMainAttributes()Ljava/util/jar/Attributes;

    move-result-object p0

    const-string v2, "Implementation-Version"

    .line 52
    invoke-virtual {p0, v2}, Ljava/util/jar/Attributes;->getValue(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    .line 53
    invoke-static {p0}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v2

    .line 54
    invoke-virtual {p1}, Ljava/util/jar/JarFile;->close()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    cmpl-double p0, v2, v0

    if-lez p0, :cond_0

    return-wide v2

    :catch_0
    :cond_0
    return-wide v0
.end method

.method static synthetic a(Lcom/baidu/mobads/f/g;)Landroid/content/Context;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/baidu/mobads/f/g;->l:Landroid/content/Context;

    return-object p0
.end method

.method static synthetic a(Lcom/baidu/mobads/f/g;Lcom/baidu/mobads/f/e;)Lcom/baidu/mobads/f/e;
    .locals 0

    .line 2
    iput-object p1, p0, Lcom/baidu/mobads/f/g;->k:Lcom/baidu/mobads/f/e;

    return-object p1
.end method

.method private a(Lcom/baidu/mobads/f/a;)Lcom/baidu/mobads/interfaces/IXAdContainerFactory;
    .locals 1

    const/4 v0, 0x0

    if-eqz p1, :cond_0

    .line 47
    :try_start_0
    invoke-virtual {p1}, Lcom/baidu/mobads/f/a;->a()Lcom/baidu/mobads/interfaces/IXAdContainerFactory;

    move-result-object v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    :cond_0
    return-object v0
.end method

.method static synthetic a(Lcom/baidu/mobads/f/g;Lcom/baidu/mobads/openad/d/a;)Lcom/baidu/mobads/openad/d/a;
    .locals 0

    .line 3
    iput-object p1, p0, Lcom/baidu/mobads/f/g;->j:Lcom/baidu/mobads/openad/d/a;

    return-object p1
.end method

.method public static a(Landroid/content/Context;)Ljava/lang/String;
    .locals 2

    .line 31
    sget-object v0, Lcom/baidu/mobads/f/g;->e:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    const-string v1, "baidu_ad_sdk"

    .line 32
    invoke-virtual {p0, v1, v0}, Landroid/content/Context;->getDir(Ljava/lang/String;I)Ljava/io/File;

    move-result-object p0

    .line 33
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object p0

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p0, "/"

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    sput-object p0, Lcom/baidu/mobads/f/g;->e:Ljava/lang/String;

    .line 34
    :cond_0
    sget-object p0, Lcom/baidu/mobads/f/g;->e:Ljava/lang/String;

    invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p0

    if-eqz p0, :cond_1

    const-string p0, ""

    return-object p0

    .line 35
    :cond_1
    new-instance p0, Ljava/lang/StringBuilder;

    invoke-direct {p0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v0, Lcom/baidu/mobads/f/g;->e:Ljava/lang/String;

    invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v0, "__xadsdk__remote__final__running__.jar"

    invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method private a(Lcom/baidu/mobads/f/b;)V
    .locals 6

    .line 20
    invoke-virtual {p1}, Lcom/baidu/mobads/f/b;->b()Ljava/lang/Class;

    move-result-object v1

    .line 21
    monitor-enter p0

    .line 22
    :try_start_0
    new-instance p1, Lcom/baidu/mobads/f/a;

    iget-object v2, p0, Lcom/baidu/mobads/f/g;->l:Landroid/content/Context;

    .line 23
    invoke-static {}, Lcom/baidu/mobads/constants/XAdSDKProxyVersion;->getVersion()D

    move-result-wide v3

    sget-object v5, Lcom/baidu/mobads/constants/XAdSDKProxyVersion;->DEBUG:Ljava/lang/Boolean;

    move-object v0, p1

    invoke-direct/range {v0 .. v5}, Lcom/baidu/mobads/f/a;-><init>(Ljava/lang/Class;Landroid/content/Context;DLjava/lang/Boolean;)V

    sput-object p1, Lcom/baidu/mobads/f/g;->c:Lcom/baidu/mobads/f/a;

    .line 24
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw p1
.end method

.method private a(Lcom/baidu/mobads/f/e;)V
    .locals 4

    .line 36
    invoke-virtual {p1}, Lcom/baidu/mobads/f/e;->a()Ljava/lang/Boolean;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 37
    iget-object v0, p0, Lcom/baidu/mobads/f/g;->l:Landroid/content/Context;

    sget-object v1, Lcom/baidu/mobads/f/g;->e:Ljava/lang/String;

    iget-object v2, p0, Lcom/baidu/mobads/f/g;->h:Landroid/os/Handler;

    .line 38
    invoke-static {v0, p1, v1, v2}, Lcom/baidu/mobads/f/c;->a(Landroid/content/Context;Lcom/baidu/mobads/f/e;Ljava/lang/String;Landroid/os/Handler;)Lcom/baidu/mobads/f/c;

    move-result-object v0

    .line 39
    invoke-virtual {v0}, Ljava/lang/Thread;->isAlive()Z

    move-result v1

    const-string v2, "XAdApkLoader"

    if-nez v1, :cond_0

    .line 40
    iget-object p1, p0, Lcom/baidu/mobads/f/g;->m:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    const-string v1, "XApkDownloadThread starting ..."

    invoke-interface {p1, v2, v1}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 41
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    goto :goto_0

    .line 42
    :cond_0
    iget-object v1, p0, Lcom/baidu/mobads/f/g;->m:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    const-string v3, "XApkDownloadThread already started"

    invoke-interface {v1, v2, v3}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 43
    invoke-virtual {p1}, Lcom/baidu/mobads/f/e;->c()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Lcom/baidu/mobads/f/c;->a(Ljava/lang/String;)V

    :cond_1
    :goto_0
    return-void
.end method

.method static synthetic a(Lcom/baidu/mobads/f/g;Lcom/baidu/mobads/f/b;)V
    .locals 0

    .line 4
    invoke-direct {p0, p1}, Lcom/baidu/mobads/f/g;->a(Lcom/baidu/mobads/f/b;)V

    return-void
.end method

.method static synthetic a(Lcom/baidu/mobads/f/g;Lcom/baidu/mobads/f/g$c;Landroid/os/Handler;)V
    .locals 0

    .line 5
    invoke-direct {p0, p1, p2}, Lcom/baidu/mobads/f/g;->b(Lcom/baidu/mobads/f/g$c;Landroid/os/Handler;)V

    return-void
.end method

.method static synthetic a(Lcom/baidu/mobads/f/g;ZLjava/lang/String;)V
    .locals 0

    .line 6
    invoke-direct {p0, p1, p2}, Lcom/baidu/mobads/f/g;->a(ZLjava/lang/String;)V

    return-void
.end method

.method private a(Z)V
    .locals 3

    .line 14
    iget-object v0, p0, Lcom/baidu/mobads/f/g;->g:Landroid/os/Handler;

    invoke-virtual {v0}, Landroid/os/Handler;->obtainMessage()Landroid/os/Message;

    move-result-object v0

    .line 15
    new-instance v1, Landroid/os/Bundle;

    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    const-string v2, "success"

    .line 16
    invoke-virtual {v1, v2, p1}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 17
    invoke-virtual {v0, v1}, Landroid/os/Message;->setData(Landroid/os/Bundle;)V

    const/4 p1, 0x0

    .line 18
    iput p1, v0, Landroid/os/Message;->what:I

    .line 19
    iget-object p1, p0, Lcom/baidu/mobads/f/g;->g:Landroid/os/Handler;

    invoke-virtual {p1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    return-void
.end method

.method private declared-synchronized a(ZLjava/lang/String;)V
    .locals 2

    monitor-enter p0

    .line 25
    :try_start_0
    iget-object p2, p0, Lcom/baidu/mobads/f/g;->l:Landroid/content/Context;

    invoke-static {p2}, Lcom/baidu/mobads/f/q;->a(Landroid/content/Context;)Lcom/baidu/mobads/f/q;

    move-result-object p2

    invoke-virtual {p2}, Lcom/baidu/mobads/f/q;->b()V

    .line 26
    iget-object p2, p0, Lcom/baidu/mobads/f/g;->o:Ljava/util/concurrent/CopyOnWriteArrayList;

    if-eqz p2, :cond_0

    iget-object p2, p0, Lcom/baidu/mobads/f/g;->o:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {p2}, Ljava/util/concurrent/CopyOnWriteArrayList;->size()I

    move-result p2

    if-lez p2, :cond_0

    .line 27
    iget-object p2, p0, Lcom/baidu/mobads/f/g;->o:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {p2}, Ljava/util/concurrent/CopyOnWriteArrayList;->iterator()Ljava/util/Iterator;

    move-result-object p2

    :goto_0
    invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/mobads/f/g$c;

    .line 28
    invoke-interface {v0, p1}, Lcom/baidu/mobads/f/g$c;->a(Z)V

    .line 29
    iget-object v1, p0, Lcom/baidu/mobads/f/g;->o:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {v1, v0}, Ljava/util/concurrent/CopyOnWriteArrayList;->remove(Ljava/lang/Object;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    .line 30
    :cond_0
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit p0

    goto :goto_2

    :goto_1
    throw p1

    :goto_2
    goto :goto_1
.end method

.method static synthetic a(Lcom/baidu/mobads/f/g;Z)Z
    .locals 0

    .line 7
    iput-boolean p1, p0, Lcom/baidu/mobads/f/g;->n:Z

    return p1
.end method

.method public static b(Landroid/content/Context;)D
    .locals 8

    .line 35
    :try_start_0
    invoke-static {p0}, Lcom/baidu/mobads/f/g;->c(Landroid/content/Context;)V

    .line 36
    invoke-static {}, Lcom/baidu/mobads/f/g;->f()Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/baidu/mobads/f/g;->a(Landroid/content/Context;Ljava/lang/String;)D

    move-result-wide v0

    .line 37
    invoke-static {}, Lcom/baidu/mobads/f/g;->d()Ljava/lang/String;

    move-result-object v2

    .line 38
    invoke-static {p0, v2}, Lcom/baidu/mobads/f/g;->a(Landroid/content/Context;Ljava/lang/String;)D

    move-result-wide v3

    const-string v5, "8.8283"

    .line 39
    invoke-static {v5}, Ljava/lang/Double;->valueOf(Ljava/lang/String;)Ljava/lang/Double;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v5

    cmpl-double v7, v5, v3

    if-lez v7, :cond_1

    .line 40
    new-instance v3, Lcom/baidu/mobads/f/b;

    invoke-direct {v3, v2, p0}, Lcom/baidu/mobads/f/b;-><init>(Ljava/lang/String;Landroid/content/Context;)V

    .line 41
    invoke-virtual {v3}, Ljava/io/File;->exists()Z

    move-result v4

    if-eqz v4, :cond_0

    .line 42
    invoke-virtual {v3}, Ljava/io/File;->delete()Z

    .line 43
    :cond_0
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v3

    invoke-virtual {v3}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getIoUtils()Lcom/baidu/mobads/interfaces/utils/IXAdIOUtils;

    move-result-object v3

    const-string v4, "bdxadsdk.jar"

    .line 44
    invoke-interface {v3, p0, v4, v2}, Lcom/baidu/mobads/interfaces/utils/IXAdIOUtils;->copyFileFromAssetsTo(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 45
    :cond_1
    invoke-static {}, Lcom/baidu/mobads/f/g;->d()Ljava/lang/String;

    move-result-object v2

    invoke-static {p0, v2}, Lcom/baidu/mobads/f/g;->a(Landroid/content/Context;Ljava/lang/String;)D

    move-result-wide v2

    .line 46
    invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->max(DD)D

    move-result-wide v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-wide v0

    :catch_0
    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method private b(Lcom/baidu/mobads/f/b;)V
    .locals 10

    .line 6
    iget-object v0, p0, Lcom/baidu/mobads/f/g;->m:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "len="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/io/File;->length()J

    move-result-wide v2

    invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v2, ", path="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v2, "XAdApkLoader"

    invoke-interface {v0, v2, v1}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 7
    sget-object v0, Lcom/baidu/mobads/f/g;->b:Lcom/baidu/mobads/f/a;

    if-nez v0, :cond_1

    .line 8
    iget-object v0, p0, Lcom/baidu/mobads/f/g;->l:Landroid/content/Context;

    invoke-static {v0}, Lcom/baidu/mobads/f/g;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    .line 9
    new-instance v1, Lcom/baidu/mobads/f/b;

    iget-object v3, p0, Lcom/baidu/mobads/f/g;->l:Landroid/content/Context;

    invoke-direct {v1, v0, v3}, Lcom/baidu/mobads/f/b;-><init>(Ljava/lang/String;Landroid/content/Context;)V

    .line 10
    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v3

    if-eqz v3, :cond_0

    .line 11
    invoke-virtual {v1}, Ljava/io/File;->delete()Z

    .line 12
    :cond_0
    :try_start_0
    new-instance v3, Ljava/io/FileInputStream;

    invoke-direct {v3, p1}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V

    .line 13
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v4

    invoke-virtual {v4}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getIoUtils()Lcom/baidu/mobads/interfaces/utils/IXAdIOUtils;

    move-result-object v4

    .line 14
    invoke-interface {v4, v3, v0}, Lcom/baidu/mobads/interfaces/utils/IXAdIOUtils;->copyFileInputStream(Ljava/io/InputStream;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 15
    iget-object v3, p0, Lcom/baidu/mobads/f/g;->m:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    invoke-interface {v3, v0}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->e(Ljava/lang/Throwable;)I

    .line 16
    :goto_0
    invoke-virtual {v1}, Lcom/baidu/mobads/f/b;->b()Ljava/lang/Class;

    move-result-object v5

    .line 17
    new-instance v0, Lcom/baidu/mobads/f/a;

    iget-object v6, p0, Lcom/baidu/mobads/f/g;->l:Landroid/content/Context;

    .line 18
    invoke-static {}, Lcom/baidu/mobads/constants/XAdSDKProxyVersion;->getVersion()D

    move-result-wide v7

    sget-object v9, Lcom/baidu/mobads/constants/XAdSDKProxyVersion;->DEBUG:Ljava/lang/Boolean;

    move-object v4, v0

    invoke-direct/range {v4 .. v9}, Lcom/baidu/mobads/f/a;-><init>(Ljava/lang/Class;Landroid/content/Context;DLjava/lang/Boolean;)V

    sput-object v0, Lcom/baidu/mobads/f/g;->b:Lcom/baidu/mobads/f/a;

    .line 19
    :try_start_1
    sget-object v0, Lcom/baidu/mobads/f/g;->b:Lcom/baidu/mobads/f/a;

    invoke-virtual {v0}, Lcom/baidu/mobads/f/a;->a()Lcom/baidu/mobads/interfaces/IXAdContainerFactory;

    move-result-object v0

    .line 20
    iget-object v1, p0, Lcom/baidu/mobads/f/g;->m:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "preloaded apk.version="

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-interface {v0}, Lcom/baidu/mobads/interfaces/IXAdContainerFactory;->getRemoteVersion()D

    move-result-wide v4

    invoke-virtual {v3, v4, v5}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-interface {v1, v2, v0}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_1
    .catch Lcom/baidu/mobads/f/g$a; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_1

    :catch_1
    move-exception v0

    .line 21
    iget-object v1, p0, Lcom/baidu/mobads/f/g;->m:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "preload local apk "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, " failed, msg:"

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, ", v="

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object p1, Lcom/baidu/mobads/f/g;->b:Lcom/baidu/mobads/f/a;

    iget-wide v4, p1, Lcom/baidu/mobads/f/a;->a:D

    invoke-virtual {v3, v4, v5}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-interface {v1, v2, p1}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 22
    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/baidu/mobads/f/g;->a(Ljava/lang/String;)V

    .line 23
    throw v0

    .line 24
    :cond_1
    iget-object p1, p0, Lcom/baidu/mobads/f/g;->m:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "mApkBuilder already initialized, version: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v1, Lcom/baidu/mobads/f/g;->b:Lcom/baidu/mobads/f/a;

    iget-wide v3, v1, Lcom/baidu/mobads/f/a;->a:D

    invoke-virtual {v0, v3, v4}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v2, v0}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I

    :goto_1
    return-void
.end method

.method private b(Lcom/baidu/mobads/f/g$c;Landroid/os/Handler;)V
    .locals 1

    .line 29
    iget-object v0, p0, Lcom/baidu/mobads/f/g;->o:Ljava/util/concurrent/CopyOnWriteArrayList;

    if-eqz v0, :cond_0

    invoke-virtual {v0, p1}, Ljava/util/concurrent/CopyOnWriteArrayList;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 30
    iget-object v0, p0, Lcom/baidu/mobads/f/g;->o:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {v0, p1}, Ljava/util/concurrent/CopyOnWriteArrayList;->add(Ljava/lang/Object;)Z

    .line 31
    :cond_0
    iput-object p2, p0, Lcom/baidu/mobads/f/g;->g:Landroid/os/Handler;

    .line 32
    sget-object p1, Lcom/baidu/mobads/f/g;->b:Lcom/baidu/mobads/f/a;

    if-nez p1, :cond_1

    .line 33
    invoke-virtual {p0}, Lcom/baidu/mobads/f/g;->g()V

    goto :goto_0

    :cond_1
    const/4 p1, 0x1

    .line 34
    invoke-direct {p0, p1}, Lcom/baidu/mobads/f/g;->b(Z)V

    :goto_0
    return-void
.end method

.method static synthetic b(Lcom/baidu/mobads/f/g;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/baidu/mobads/f/g;->k()V

    return-void
.end method

.method static synthetic b(Lcom/baidu/mobads/f/g;Lcom/baidu/mobads/f/e;)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Lcom/baidu/mobads/f/g;->a(Lcom/baidu/mobads/f/e;)V

    return-void
.end method

.method static synthetic b(Lcom/baidu/mobads/f/g;Z)V
    .locals 0

    .line 3
    invoke-direct {p0, p1}, Lcom/baidu/mobads/f/g;->a(Z)V

    return-void
.end method

.method private b(Z)V
    .locals 4

    if-nez p1, :cond_0

    .line 25
    invoke-direct {p0}, Lcom/baidu/mobads/f/g;->n()Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    .line 26
    iput-boolean v0, p0, Lcom/baidu/mobads/f/g;->n:Z

    goto :goto_1

    :cond_0
    if-eqz p1, :cond_1

    const-string v0, "apk Successfully Loaded"

    goto :goto_0

    :cond_1
    const-string v0, "apk Load Failed"

    .line 27
    :goto_0
    invoke-direct {p0, p1, v0}, Lcom/baidu/mobads/f/g;->a(ZLjava/lang/String;)V

    .line 28
    :goto_1
    new-instance v0, Landroid/os/Handler;

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    new-instance v1, Lcom/baidu/mobads/f/k;

    invoke-direct {v1, p0, p1}, Lcom/baidu/mobads/f/k;-><init>(Lcom/baidu/mobads/f/g;Z)V

    iget-boolean p1, p0, Lcom/baidu/mobads/f/g;->n:Z

    if-eqz p1, :cond_2

    const-wide/16 v2, 0x0

    goto :goto_2

    :cond_2
    const-wide/16 v2, 0x1388

    :goto_2
    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    return-void
.end method

.method protected static c()Ljava/lang/String;
    .locals 2

    .line 6
    sget-object v0, Lcom/baidu/mobads/f/g;->e:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, ""

    return-object v0

    .line 7
    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lcom/baidu/mobads/f/g;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "__xadsdk__remote__final__builtin__.jar"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private static c(Landroid/content/Context;)V
    .locals 2

    .line 3
    sget-object v0, Lcom/baidu/mobads/f/g;->e:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    const-string v1, "baidu_ad_sdk"

    .line 4
    invoke-virtual {p0, v1, v0}, Landroid/content/Context;->getDir(Ljava/lang/String;I)Ljava/io/File;

    move-result-object p0

    .line 5
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object p0

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p0, "/"

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    sput-object p0, Lcom/baidu/mobads/f/g;->e:Ljava/lang/String;

    :cond_0
    return-void
.end method

.method static synthetic c(Lcom/baidu/mobads/f/g;Z)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Lcom/baidu/mobads/f/g;->b(Z)V

    return-void
.end method

.method private c(Lcom/baidu/mobads/f/b;)Z
    .locals 4

    .line 8
    monitor-enter p0

    .line 9
    :try_start_0
    invoke-direct {p0, p1}, Lcom/baidu/mobads/f/g;->b(Lcom/baidu/mobads/f/b;)V

    .line 10
    iget-object v0, p0, Lcom/baidu/mobads/f/g;->m:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    const-string v1, "XAdApkLoader"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "loaded: "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-interface {v0, v1, p1}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I

    const/4 p1, 0x1

    .line 11
    monitor-exit p0

    return p1

    :catchall_0
    move-exception p1

    .line 12
    monitor-exit p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw p1
.end method

.method static synthetic c(Lcom/baidu/mobads/f/g;)Z
    .locals 0

    .line 2
    iget-boolean p0, p0, Lcom/baidu/mobads/f/g;->n:Z

    return p0
.end method

.method protected static d()Ljava/lang/String;
    .locals 2

    .line 2
    sget-object v0, Lcom/baidu/mobads/f/g;->e:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, ""

    return-object v0

    .line 3
    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lcom/baidu/mobads/f/g;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "__xadsdk__remote__final__builtinversion__.jar"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private static declared-synchronized d(Landroid/content/Context;)V
    .locals 7

    const-class v0, Lcom/baidu/mobads/f/g;

    monitor-enter v0

    .line 4
    :try_start_0
    invoke-static {}, Lcom/baidu/mobads/f/g;->c()Ljava/lang/String;

    move-result-object v1

    .line 5
    invoke-static {p0, v1}, Lcom/baidu/mobads/f/g;->a(Landroid/content/Context;Ljava/lang/String;)D

    move-result-wide v2

    const-string v4, "8.8283"

    .line 6
    invoke-static {v4}, Ljava/lang/Double;->valueOf(Ljava/lang/String;)Ljava/lang/Double;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v4

    cmpl-double v6, v4, v2

    if-lez v6, :cond_1

    .line 7
    new-instance v2, Lcom/baidu/mobads/f/b;

    invoke-direct {v2, v1, p0}, Lcom/baidu/mobads/f/b;-><init>(Ljava/lang/String;Landroid/content/Context;)V

    .line 8
    invoke-virtual {v2}, Ljava/io/File;->exists()Z

    move-result v3

    if-eqz v3, :cond_0

    .line 9
    invoke-virtual {v2}, Ljava/io/File;->delete()Z

    .line 10
    :cond_0
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v2

    invoke-virtual {v2}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getIoUtils()Lcom/baidu/mobads/interfaces/utils/IXAdIOUtils;

    move-result-object v2

    const-string v3, "bdxadsdk.jar"

    .line 11
    invoke-interface {v2, p0, v3, v1}, Lcom/baidu/mobads/interfaces/utils/IXAdIOUtils;->copyFileFromAssetsTo(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 12
    :cond_1
    monitor-exit v0

    return-void

    :catchall_0
    move-exception p0

    goto :goto_0

    :catch_0
    move-exception p0

    .line 13
    :try_start_1
    new-instance v1, Lcom/baidu/mobads/f/g$b;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "loadBuiltInApk failed: "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Ljava/lang/Exception;->toString()Ljava/lang/String;

    move-result-object p0

    invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    invoke-direct {v1, p0}, Lcom/baidu/mobads/f/g$b;-><init>(Ljava/lang/String;)V

    throw v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :goto_0
    monitor-exit v0

    throw p0
.end method

.method static synthetic d(Lcom/baidu/mobads/f/g;)Z
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/baidu/mobads/f/g;->p()Z

    move-result p0

    return p0
.end method

.method static synthetic e(Lcom/baidu/mobads/f/g;)Lcom/baidu/mobads/interfaces/utils/IXAdLogger;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/baidu/mobads/f/g;->m:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    return-object p0
.end method

.method protected static f()Ljava/lang/String;
    .locals 2

    .line 2
    sget-object v0, Lcom/baidu/mobads/f/g;->e:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, ""

    return-object v0

    .line 3
    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lcom/baidu/mobads/f/g;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "__xadsdk__remote__final__downloaded__.jar"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method static synthetic f(Lcom/baidu/mobads/f/g;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/baidu/mobads/f/g;->o()V

    return-void
.end method

.method static synthetic g(Lcom/baidu/mobads/f/g;)Landroid/content/SharedPreferences;
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/baidu/mobads/f/g;->l()Landroid/content/SharedPreferences;

    move-result-object p0

    return-object p0
.end method

.method static synthetic h(Lcom/baidu/mobads/f/g;)Lcom/baidu/mobads/f/e;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/baidu/mobads/f/g;->k:Lcom/baidu/mobads/f/e;

    return-object p0
.end method

.method static synthetic i(Lcom/baidu/mobads/f/g;)Lcom/baidu/mobads/openad/d/a;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/baidu/mobads/f/g;->j:Lcom/baidu/mobads/openad/d/a;

    return-object p0
.end method

.method static synthetic j()Ljava/lang/String;
    .locals 1

    .line 1
    sget-object v0, Lcom/baidu/mobads/f/g;->i:Ljava/lang/String;

    return-object v0
.end method

.method private k()V
    .locals 4

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/baidu/mobads/f/g;->l:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getFilesDir()Ljava/io/File;

    move-result-object v0

    .line 2
    invoke-virtual {v0}, Ljava/io/File;->listFiles()[Ljava/io/File;

    move-result-object v0

    const/4 v1, 0x0

    :goto_0
    if-eqz v0, :cond_1

    .line 3
    array-length v2, v0

    if-ge v1, v2, :cond_1

    .line 4
    aget-object v2, v0, v1

    invoke-virtual {v2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v2

    const-string v3, "__xadsdk__remote__final__"

    invoke-virtual {v2, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_0

    aget-object v2, v0, v1

    .line 5
    invoke-virtual {v2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v2

    const-string v3, "dex"

    invoke-virtual {v2, v3}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 6
    aget-object v2, v0, v1

    invoke-virtual {v2}, Ljava/io/File;->delete()Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :catch_0
    move-exception v0

    .line 7
    invoke-static {}, Lcom/baidu/mobads/utils/q;->a()Lcom/baidu/mobads/utils/q;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/baidu/mobads/utils/q;->e(Ljava/lang/Throwable;)I

    :cond_1
    return-void
.end method

.method private l()Landroid/content/SharedPreferences;
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/f/g;->l:Landroid/content/Context;

    const-string v1, "com.baidu.mobads.loader"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    return-object v0
.end method

.method private m()Z
    .locals 3

    .line 1
    invoke-direct {p0}, Lcom/baidu/mobads/f/g;->l()Landroid/content/SharedPreferences;

    move-result-object v0

    const-string v1, "previousProxyVersion"

    const/4 v2, 0x0

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 2
    invoke-virtual {p0}, Lcom/baidu/mobads/f/g;->a()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    if-nez v0, :cond_0

    goto :goto_0

    .line 3
    :cond_0
    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    goto :goto_0

    :cond_1
    const/4 v2, 0x0

    :goto_0
    return v2
.end method

.method private n()Z
    .locals 3

    const/4 v0, 0x0

    .line 1
    :try_start_0
    invoke-static {}, Lcom/baidu/mobads/f/g;->c()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/baidu/mobads/utils/p;->b(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 2
    invoke-static {}, Lcom/baidu/mobads/f/g;->f()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/baidu/mobads/utils/p;->b(Ljava/lang/String;)Z

    move-result v1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    if-eqz v1, :cond_1

    :cond_0
    const/4 v0, 0x1

    :cond_1
    return v0

    :catch_0
    move-exception v1

    .line 3
    iget-object v2, p0, Lcom/baidu/mobads/f/g;->m:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    invoke-interface {v2, v1}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/Throwable;)I

    return v0
.end method

.method private declared-synchronized o()V
    .locals 1

    monitor-enter p0

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/baidu/mobads/f/g;->j:Lcom/baidu/mobads/openad/d/a;

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/baidu/mobads/f/g;->j:Lcom/baidu/mobads/openad/d/a;

    invoke-virtual {v0}, Lcom/baidu/mobads/openad/c/c;->removeAllListeners()V

    .line 3
    iget-object v0, p0, Lcom/baidu/mobads/f/g;->j:Lcom/baidu/mobads/openad/d/a;

    invoke-virtual {v0}, Lcom/baidu/mobads/openad/d/a;->a()V

    :cond_0
    const/4 v0, 0x0

    .line 4
    iput-object v0, p0, Lcom/baidu/mobads/f/g;->j:Lcom/baidu/mobads/openad/d/a;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0

    .line 5
    :catch_0
    :goto_0
    monitor-exit p0

    return-void
.end method

.method private p()Z
    .locals 8

    .line 1
    invoke-static {}, Lcom/baidu/mobads/f/g;->f()Ljava/lang/String;

    move-result-object v0

    .line 2
    new-instance v1, Lcom/baidu/mobads/f/b;

    iget-object v2, p0, Lcom/baidu/mobads/f/g;->l:Landroid/content/Context;

    invoke-direct {v1, v0, v2}, Lcom/baidu/mobads/f/b;-><init>(Ljava/lang/String;Landroid/content/Context;)V

    .line 3
    invoke-static {v1}, Lcom/baidu/mobads/utils/p;->a(Ljava/io/File;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 4
    :try_start_0
    invoke-direct {p0}, Lcom/baidu/mobads/f/g;->m()Z

    move-result v0

    if-nez v0, :cond_1

    .line 5
    monitor-enter p0
    :try_end_0
    .catch Lcom/baidu/mobads/f/g$a; {:try_start_0 .. :try_end_0} :catch_0

    .line 6
    :try_start_1
    iget-object v0, p0, Lcom/baidu/mobads/f/g;->m:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    const-string v2, "XAdApkLoader"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "loadDownloadedOrBuiltInApk len="

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/io/File;->length()J

    move-result-wide v4

    invoke-virtual {v3, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v4, ", path="

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 7
    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 8
    invoke-interface {v0, v2, v3}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 9
    invoke-direct {p0, v1}, Lcom/baidu/mobads/f/g;->b(Lcom/baidu/mobads/f/b;)V

    .line 10
    invoke-direct {p0}, Lcom/baidu/mobads/f/g;->l()Landroid/content/SharedPreferences;

    move-result-object v0

    const-string v2, "__badApkVersion__8.8283"

    const/high16 v3, -0x40800000    # -1.0f

    invoke-interface {v0, v2, v3}, Landroid/content/SharedPreferences;->getFloat(Ljava/lang/String;F)F

    move-result v0

    float-to-double v2, v0

    .line 11
    iget-object v0, p0, Lcom/baidu/mobads/f/g;->m:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    const-string v4, "XAdApkLoader"

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "downloadedApkFile.getApkVersion(): "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Lcom/baidu/mobads/f/b;->c()D

    move-result-wide v6

    invoke-virtual {v5, v6, v7}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    const-string v6, ", badApkVersion: "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v2, v3}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-interface {v0, v4, v5}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 12
    invoke-virtual {v1}, Lcom/baidu/mobads/f/b;->c()D

    move-result-wide v4

    cmpl-double v0, v4, v2

    if-eqz v0, :cond_0

    .line 13
    iget-object v0, p0, Lcom/baidu/mobads/f/g;->m:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    const-string v2, "XAdApkLoader"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "loaded: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-interface {v0, v2, v3}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I

    const/4 v0, 0x1

    .line 14
    monitor-exit p0

    return v0

    .line 15
    :cond_0
    new-instance v0, Lcom/baidu/mobads/f/g$a;

    const-string v2, "downloaded file marked bad, drop it and use built-in"

    invoke-direct {v0, v2}, Lcom/baidu/mobads/f/g$a;-><init>(Ljava/lang/String;)V

    throw v0

    :catchall_0
    move-exception v0

    .line 16
    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :try_start_2
    throw v0

    .line 17
    :cond_1
    new-instance v0, Lcom/baidu/mobads/f/g$a;

    const-string v2, "XAdApkLoader upgraded, drop stale downloaded file, use built-in instead"

    invoke-direct {v0, v2}, Lcom/baidu/mobads/f/g$a;-><init>(Ljava/lang/String;)V

    throw v0
    :try_end_2
    .catch Lcom/baidu/mobads/f/g$a; {:try_start_2 .. :try_end_2} :catch_0

    :catch_0
    move-exception v0

    .line 18
    iget-object v2, p0, Lcom/baidu/mobads/f/g;->m:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "load downloaded apk failed: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/Exception;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v0, ", fallback to built-in"

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v3, "XAdApkLoader"

    invoke-interface {v2, v3, v0}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 19
    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 20
    invoke-virtual {v1}, Ljava/io/File;->delete()Z

    .line 21
    :cond_2
    invoke-virtual {p0}, Lcom/baidu/mobads/f/g;->i()V

    :cond_3
    const/4 v0, 0x0

    return v0
.end method


# virtual methods
.method public final a()Ljava/lang/String;
    .locals 1

    const-string v0, "8.8283"

    return-object v0
.end method

.method public a(Lcom/baidu/mobads/f/g$c;)V
    .locals 1

    .line 46
    sget-object v0, Lcom/baidu/mobads/f/g;->f:Landroid/os/Handler;

    invoke-virtual {p0, p1, v0}, Lcom/baidu/mobads/f/g;->a(Lcom/baidu/mobads/f/g$c;Landroid/os/Handler;)V

    return-void
.end method

.method public a(Lcom/baidu/mobads/f/g$c;Landroid/os/Handler;)V
    .locals 2
    .annotation build Landroid/annotation/TargetApi;
        value = 0x9
    .end annotation

    .line 44
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/baidu/mobads/f/n;

    invoke-direct {v1, p0, p1, p2}, Lcom/baidu/mobads/f/n;-><init>(Lcom/baidu/mobads/f/g;Lcom/baidu/mobads/f/g$c;Landroid/os/Handler;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 45
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    return-void
.end method

.method protected a(Ljava/lang/String;)V
    .locals 2
    .annotation build Landroid/annotation/TargetApi;
        value = 0x9
    .end annotation

    .line 8
    sget-object p1, Lcom/baidu/mobads/f/g;->b:Lcom/baidu/mobads/f/a;

    if-eqz p1, :cond_1

    .line 9
    invoke-direct {p0}, Lcom/baidu/mobads/f/g;->l()Landroid/content/SharedPreferences;

    move-result-object p1

    invoke-interface {p1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object p1

    .line 10
    sget-object v0, Lcom/baidu/mobads/f/g;->b:Lcom/baidu/mobads/f/a;

    iget-wide v0, v0, Lcom/baidu/mobads/f/a;->a:D

    double-to-float v0, v0

    const-string v1, "__badApkVersion__8.8283"

    invoke-interface {p1, v1, v0}, Landroid/content/SharedPreferences$Editor;->putFloat(Ljava/lang/String;F)Landroid/content/SharedPreferences$Editor;

    .line 11
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x9

    if-lt v0, v1, :cond_0

    .line 12
    invoke-interface {p1}, Landroid/content/SharedPreferences$Editor;->apply()V

    goto :goto_0

    .line 13
    :cond_0
    invoke-interface {p1}, Landroid/content/SharedPreferences$Editor;->commit()Z

    :cond_1
    :goto_0
    return-void
.end method

.method protected b()V
    .locals 2

    .line 4
    new-instance v0, Ljava/io/File;

    invoke-static {}, Lcom/baidu/mobads/f/g;->f()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 5
    invoke-virtual {v0}, Ljava/io/File;->delete()Z

    return-void
.end method

.method protected e()V
    .locals 4

    .line 2
    iget-object v0, p0, Lcom/baidu/mobads/f/g;->l:Landroid/content/Context;

    invoke-static {v0}, Lcom/baidu/mobads/f/g;->d(Landroid/content/Context;)V

    .line 3
    invoke-static {}, Lcom/baidu/mobads/f/g;->c()Ljava/lang/String;

    move-result-object v0

    .line 4
    new-instance v1, Lcom/baidu/mobads/f/b;

    iget-object v2, p0, Lcom/baidu/mobads/f/g;->l:Landroid/content/Context;

    invoke-direct {v1, v0, v2}, Lcom/baidu/mobads/f/b;-><init>(Ljava/lang/String;Landroid/content/Context;)V

    .line 5
    invoke-static {v1}, Lcom/baidu/mobads/utils/p;->a(Ljava/io/File;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 6
    invoke-direct {p0, v1}, Lcom/baidu/mobads/f/g;->c(Lcom/baidu/mobads/f/b;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    .line 7
    invoke-direct {p0, v0}, Lcom/baidu/mobads/f/g;->b(Z)V

    :cond_0
    return-void

    .line 8
    :cond_1
    new-instance v1, Lcom/baidu/mobads/f/g$b;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "loadBuiltInApk failed: "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v1, v0}, Lcom/baidu/mobads/f/g$b;-><init>(Ljava/lang/String;)V

    throw v1
.end method

.method protected g()V
    .locals 5

    .line 2
    invoke-direct {p0}, Lcom/baidu/mobads/f/g;->p()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    .line 3
    invoke-direct {p0, v0}, Lcom/baidu/mobads/f/g;->b(Z)V

    goto :goto_0

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/baidu/mobads/f/g;->m:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    const-string v1, "XAdApkLoader"

    const-string v2, "no downloaded file yet, use built-in apk file"

    invoke-interface {v0, v1, v2}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 5
    :try_start_0
    invoke-virtual {p0}, Lcom/baidu/mobads/f/g;->e()V
    :try_end_0
    .catch Lcom/baidu/mobads/f/g$b; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-void

    :catch_0
    move-exception v0

    .line 6
    iget-object v2, p0, Lcom/baidu/mobads/f/g;->m:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "loadBuiltInApk failed: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/Exception;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-interface {v2, v1, v3}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 7
    new-instance v1, Lcom/baidu/mobads/f/g$a;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "load built-in apk failed"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/Exception;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v1, v0}, Lcom/baidu/mobads/f/g$a;-><init>(Ljava/lang/String;)V

    throw v1
.end method

.method public h()Lcom/baidu/mobads/interfaces/IXAdContainerFactory;
    .locals 1

    .line 2
    sget-object v0, Lcom/baidu/mobads/f/g;->b:Lcom/baidu/mobads/f/a;

    invoke-direct {p0, v0}, Lcom/baidu/mobads/f/g;->a(Lcom/baidu/mobads/f/a;)Lcom/baidu/mobads/interfaces/IXAdContainerFactory;

    move-result-object v0

    return-object v0
.end method

.method protected i()V
    .locals 1

    .line 2
    sget-object v0, Lcom/baidu/mobads/f/g;->b:Lcom/baidu/mobads/f/a;

    if-eqz v0, :cond_0

    .line 3
    sget-object v0, Lcom/baidu/mobads/f/g;->b:Lcom/baidu/mobads/f/a;

    invoke-virtual {v0}, Lcom/baidu/mobads/f/a;->b()V

    const/4 v0, 0x0

    .line 4
    sput-object v0, Lcom/baidu/mobads/f/g;->b:Lcom/baidu/mobads/f/a;

    :cond_0
    return-void
.end method
